package org.fig.ioc.bean.factory;

import org.fig.ioc.overview.domain.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Description: {@link User} Bean 的 {@link FactoryBean}的实现
 * @Author: Flynn Vanderboom
 * @Data: 2021/6/15 20:49
 */

public class UserFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return User.createUser();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
